package com.mida.dms.knw.service;

import com.mida.dms.knw.entity.KnwIndividualRelation;
import com.mida.dms.knw.entity.vo.KnwIndividualRelationVo;
import com.mida.dms.knw.entity.vo.KnwIndividualVo;
import com.mida.dms.knw.entity.vo.MapperPage;
import com.mida.dms.knw.vo.KnwIndividualRelationPageVo;
import com.mida.dms.knw.vo.PageResultVo;
import com.mida.tool.common.result.ActionResult;
import com.mida.tool.common.result.ListResult;

import java.util.List;

/**
 * <h1></h1>
 * <p>
 *
 * </p>
 *
 * @author jian.li on 2021/7/15 14:45
 */
public interface KnwIndividualRelationService {

    ActionResult addSingle(KnwIndividualRelationVo relation);

    ActionResult updateSingle(KnwIndividualRelationVo relation);

    ActionResult delete(Long individualRelationSoid);

    ActionResult addList(List<KnwIndividualRelationVo> relationList);

    ListResult<List<KnwIndividualVo>> findSourceAndTarget(MapperPage page);

    ListResult<PageResultVo<KnwIndividualRelationVo>> findPage(KnwIndividualRelationPageVo vo);

    ListResult<KnwIndividualRelationVo> findSingle(Long individualRelationSoid);

    ActionResult enable(Long soid);

    ListResult<Object> findRelation(String searchData);
}
